home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / prg.to < prev    next >
Text File  |  1991-04-12  |  2KB  |  54 lines

  1. Article 2956 of comp.sys.handhelds:
  2. Path: en.ecn.purdue.edu!noose.ecn.purdue.edu!samsung!zaphod.mps.ohio-state.edu!ub!acsu.buffalo.edu
  3. From: cloos@acsu.buffalo.edu (James H. Cloos)
  4. Newsgroups: comp.sys.handhelds
  5. Subject: Re: HP48: Code Objects in User Language Programs
  6. Message-ID: <52082@eerie.acsu.Buffalo.EDU>
  7. Date: 18 Dec 90 02:48:03 GMT
  8. References: <kskalb.661187537@faui1f>
  9. Sender: news@acsu.Buffalo.EDU
  10. Organization: State University of New York @ Buffalo
  11. Lines: 38
  12. Nntp-Posting-Host: lictor.acsu.buffalo.edu
  13.  
  14. In article <kskalb.661187537@faui1f> kskalb@faui1f.informatik.uni-erlangen.de (Klaus Kalb) writes:
  15. [etc.]
  16. >Can a code object be included into a user language program ?
  17. >If yes, how ?
  18. [etc.]
  19.  
  20. You will have to use a function such as \->PRG posted previously by
  21. Rick Grevelle.  (see below).  To do this, write your usrlang program
  22. as usual, execute PRG\-> to put each element of the porgram on the
  23. stack, put your code object on the stack, then use ROLLD & ROLL to
  24. position the CODE where it belongs in the program (interactive stack
  25. helps here).  If you left a marker for where the code was to be
  26. inserted, make sure you remove it from the stack, if you didn't, make
  27. sure you increment the #_of_elements count that PRG\-> left on level
  28. 1.  Now use \->PRG to combine the elements back into a program.
  29.  
  30. The four programs in the downloadable dir below need to be run thru
  31. ASC\-> to use them.  Here is the DIR:
  32.  
  33. %%HP: T(3)A(R)F(.);
  34. DIR
  35.   \->PRG
  36. "D9D2043C8154450B21305CEC"
  37.   PRG\->
  38. "D9D202BA812BF81F3040379C1B21305293"
  39.   ALG\->
  40. "D9D202BA812BF8194040379C1B2130C3D2"
  41.   \->ALG
  42. "D9D2043C81D6450B2130474F"
  43. END
  44.  
  45. These routines do do argument checking.
  46.  
  47. -JimC
  48. --
  49. James H. Cloos, Jr.        Phone:  +1 716 673-1250
  50. cloos@ACSU.Buffalo.EDU        Snail:  PersonalZipCode:  14048-0772, USA
  51. cloos@ub.UUCP            Quote:  <>
  52.  
  53.  
  54.